<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{$meta_title}|{:config('web_site_title')}后台管理</title>   
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/css/bootstrap.min.css"/>
    <!-- Font Awesome -->
    <link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
  <!-- Ionicons -->
  <!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">-->
   {load href="__ADMIN_CSS__/AdminLTE.min.css,__ADMIN_CSS__/_all-skins.min.css,__PUBLIC__/css/base.css,__ADMIN_CSS__/style.css,__STATIC__/libs/iCheck/all.css" /}
  <link type="text/css" href="__STATIC__/libs/datetimepicker/datetimepicker.css" rel="stylesheet" >
  <link href="__STATIC__/libs/webuploader/css/webuploader.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="__PUBLIC__/js/jquery-1.12.4.min.js"></script>
    <!-- <script type="text/javascript" src="__PUBLIC__/js/jquery-3.2.1.min.js"></script> -->  
    <script type="text/javascript">
        var EacooPHP = window.EacooPHP = {
            "url_model":2,
            "root":'{:BASE_PATH}',
            "root_domain": "{$Request.domain}/admin.php", //当前网站地址
            "static": "__STATIC__", //静态资源地址
            "public": "__PUBLIC__", //项目公共目录地址
            "uploads_url" :'/uploads/',
            "cdn_url":"{:config('aliyun_oss.domain')}",
        }
    </script>

    <link type="text/css" rel="stylesheet" href="__STATIC__/libs/nprogress/nprogress.css"/>
    <script type="text/javascript" src="__STATIC__/libs/nprogress/nprogress.js"></script>
</head>
<body class="hold-transition skin-blue sidebar-mini fixed">
<!-- <body class="hold-transition skin-red-light sidebar-mini fixed"> -->
<div class="wrapper">
    <header class="main-header">
      <!-- Logo -->
      <a href="{:url('admin/dashboard/index')}" class="logo" data-pjax=false>
       <img class="logo-img" src="__ROOT__/eacoophp_logo_v1.png">  <span class="logo-lg"><b>Eacoo</b>PHP</span>
      </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>
      {php}if(!is_mobile()){{/php}
        <ul class="nav navbar-nav">
          <li><a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-star" style="font-size: 20px!important;"></i></a>
          <ul class="dropdown-menu" role="menu">
                <li><a href="{:url('cms/posts/edit')}"><i class="fa fa-circle-o"></i> 发布文章</a></li>
                <li><a href="{:url('cms/posts/index')}"><i class="fa fa-circle-o"></i> 文章列表</a></li>
              </ul>
          </li>
          <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-cloud"></i> 扩展中心<span class="label label-danger">新</span> <!-- <span class="caret"></span> --></a>
              <ul class="dropdown-menu" role="menu">
                <li><a href="{:url('admin/modules/index')}"><i class="fa fa-circle-o"></i> 模块</a></li>
                <li><a href="{:url('admin/plugins/index')}"><i class="fa fa-circle-o"></i> 插件</a></li>
                <li><a href="{:url('admin/theme/index')}"><i class="fa fa-circle-o"></i> 主题</a></li>
              </ul>
            </li>
        </ul>
      {php}}{/php}
      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
          <!-- Messages: style can be found in dropdown.less-->
          <li class="dropdown messages-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <i class="fa fa-envelope-o"></i>
              <span class="label label-success">{$current_message_count}</span>
            </a>
            <ul class="dropdown-menu">
              <li class="header">你有{$current_message_count}条消息</li>
              <li class="msg-ul">
                <!-- inner menu: contains the actual data -->
                <ul class="menu msg-list">
                {present name="current_messages"}
                  {volist name="current_messages" id="message"}
                      <li>
                      <a href="{:url('User/Message/message_detail',array('to_uid'=>$message['from_uid']))}" class="popover-toggle" tabindex="0" data-trigger="hover" role="button" data-toggle="popover" data-trigger="focus" data-content="{$message.content}">
                        <div class="pull-left">
                          <img src="{$message.fromuid_avatar|root_full_path=###}" class="img-circle">
                        </div>
                        <h4>{$message.title}
                          <small><i class="fa fa-clock-o"></i> {$message.create_time}</small>
                        </h4>
                        <p>{$message.content|cutStr=###,18}</p>
                      </a>
                    </li>
                  {/volist}
                  {/present}
                </ul>
              </li>
              <li class="footer"><a href="{:url('user/Message/messages',['box_type'=>'inbox'])}">查看所有消息</a></li>
            </ul>
          </li>
          <!-- Notifications: style can be found in dropdown.less -->
          <li class="dropdown notifications-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <i class="fa fa-bell-o"></i>
              <span class="label label-warning">0</span>
            </a>
            <ul class="dropdown-menu">
              <li class="header">有0条通知</li>
              <li>

                <ul class="menu">
                <!-- <volist name="tixian_data" id="tixian">
                    <li>
                    <a href="{:url('Sns/Funds/withdrawals')}" class="f13 color-6">
                      <i class="fa fa-info text-yellow"></i> {/*$tixian.realname*/}在{/*$data.create_time|date="m-d H:i",###*/}申请提现{/*$tixian.money*/}元
                    </a>
                  </li>
                </volist> -->
                  
                </ul>
              </li>
              <li class="footer"><a href="#">查看所有</a></li>
            </ul>
          </li>

          <!-- User Account: style can be found in dropdown.less -->
          <li class="dropdown user user-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <img src="{$current_user.avatar|root_full_path|default='/static/assets/img/default-avatar.svg'}" class="user-image" alt="{$current_user.nickname}">
              <span class="hidden-xs">{$current_user.nickname}</span>
            </a>
            <ul class="dropdown-menu">
              <!-- User image -->
              <li class="user-header">
                <img src="{$current_user.avatar|root_full_path|default='/static/assets/img/default-avatar.svg'}" class="img-circle" alt="User Image">

                <p>
                  {$current_user.nickname} - {/*$current_user.role_name*/}
                  <small>注册时间：{$current_user.reg_time}</small>
                </p>
              </li>
              <!-- Menu Body -->
              <!--<li class="user-body">
                <div class="row">
                  <div class="col-xs-4 text-center">
                    <a href="#">关注</a>
                  </div>
                  <div class="col-xs-4 text-center">
                    <a href="#">Sales</a>
                  </div>
                  <div class="col-xs-4 text-center">
                    <a href="#">朋友</a>
                  </div>
                </div>

              </li>-->
              <!-- Menu Footer-->
              <li class="user-footer">
                <div class="pull-left">
                  <a href="{:url('admin/user/profile',array('uid'=>$current_user['uid']))}" class="btn btn-default btn-flat">个人资料</a>
                  <a href="{:url('admin/user/resetPassword',array('uid'=>$current_user['uid']))}" class="btn btn-default btn-flat">修改密码</a>
                </div>
                <div class="pull-right">
                  <a href="javascript:void(0);" class="loginout btn btn-default btn-flat">退出</a>
                </div>
              </li>
            </ul>
          </li>
          <li data-toggle="tooltip" data-placement="bottom" title="" data-original-title="清除缓存">
            <a onclick="delcahe()" href="javascript:void(0);"><i class="fa f16 fa-trash-o"></i></a>
          </li>
          <li data-toggle="tooltip" data-placement="bottom" title="" data-original-title="打开前台">
            <a href="/" target="_blank"><i class="fa fa-desktop"></i></a>
          </li>
        </ul>
      </div>
    </nav>
  </header>
